<?php

$oDb = &Database::get();
$oTpl = &App::getTemplate();

if ( App::pluginInstalled('vbulletin') )
{
	$aForums = vbulletin_forum_topics();
}
else
{
	$aForums = $oDb->getRows("SELECT forum_id,forum_title FROM ". App::getT('forum') ." ORDER BY forum_title");
}

$oTpl->assign(array
(
	'aForums' => $aForums,
));

?>